/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package downloadmanager;

import java.awt.EventQueue;
import javax.swing.JFrame;

/**
 *
 * @author Administrator
 */
public class XFrame extends  JFrame{

    public XFrame(){
        setSize(100, 100);
    }
    @Override
    public void dispose() {
        super.dispose();
        System.out.println("Dispose get called");
    }

    public static void main(String[] args){
        EventQueue.invokeLater(new Runnable() {

            public void run() {
                XFrame f = new XFrame();
                f.setTitle("Hello World");
                f.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
                //f.setDefaultCloseOperation(EXIT_ON_CLOSE);
                f.setVisible(true);
            }
        });
    }

}
